package com.marketing.auth.dto;

/**
 * 权限信息DTO
 */
public class PermissionDto {
    
    private Long id;
    private String permissionCode;
    private String permissionName;
    private Long resourceId;
    private String description;
    private Integer status;
    
    // 关联的资源信息
    private ResourceDto resource;

    public PermissionDto() {}

    // Getters and Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode;
    }

    public String getPermissionName() {
        return permissionName;
    }

    public void setPermissionName(String permissionName) {
        this.permissionName = permissionName;
    }

    public Long getResourceId() {
        return resourceId;
    }

    public void setResourceId(Long resourceId) {
        this.resourceId = resourceId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public ResourceDto getResource() {
        return resource;
    }

    public void setResource(ResourceDto resource) {
        this.resource = resource;
    }

    @Override
    public String toString() {
        return "PermissionDto{" +
                "id=" + id +
                ", permissionCode='" + permissionCode + '\'' +
                ", permissionName='" + permissionName + '\'' +
                ", resourceId=" + resourceId +
                ", description='" + description + '\'' +
                ", status=" + status +
                ", resource=" + resource +
                '}';
    }
}